package travianBot;

public class MarketResourceCounter extends ResourceCounter {

	String resourceName;
	int    originalCurrent;
	int    originalCapacity;
	
	public MarketResourceCounter(String resourceName, int current, int capacity) {
		super(current, capacity);
		this.resourceName = resourceName;
		this.capacity = capacity;
		this.originalCapacity = capacity;
		this.current = current;
		this.originalCurrent = current;
		this.remainingPercentage = 100 - (int)(100 * ((float)current/(float)capacity));
	}
	
	public String toString(){
		return resourceName+":"+super.toString();
	}
	
	public String getResourceName() {
		return resourceName;
	}

	public void setResourceName(String resourceName) {
		this.resourceName = resourceName;
	}

	public int getOriginalCurrent() {
		return originalCurrent;
	}

	public int getOriginalCapacity() {
		return originalCapacity;
	}
}
